
<?php
/* display message saved in session if any */
echo $this->Session->flash();
?>
<?php echo $this->Session->flash('auth'); ?>
<?php echo $this->Form->create('User', array('role' => 'form', 'class' => 'form-horizontal')); ?>

<h1 class="col-sm-offset-1"> Passwort ändern:</h1>

<div class="form-group">
	
	<?php 
		echo $this->Form->label('oldpw', 'Altes Passwort', 'col-sm-2 control-label');
		echo $this->Form->input('oldpw',array(
			'class' => 'form-control',
			'type' => 'password',
			'label' => false,
			'div' => 'input text required col-sm-3'
		));
	?>
</div>
<div class="form-group">
<?PHP
	echo $this->Form->label('password', 'Neues Passwort', 'col-sm-2 control-label');
	echo $this->Form->input('password',array(
		'class' => 'form-control',
		'type' => 'password',
		'label' => false,
		'div' => 'input text required col-sm-3'
	));
?>
</div>
<div class="col-sm-offset-2">
	<?php echo $this->Form->end(__('Ändern')); ?>
</div>